import Vue from 'vue'
import App from './App.vue'

// 导入路由
import VueRouter from 'vue-router'

// 注册路由
Vue.use(VueRouter)

//导入组件
import HeroesList from './views/HeroesList.vue'
import ZbList from './views/ZbList.vue'
import JnList from './views/JnList.vue'


//引入bootstrap
import 'bootstrap/dist/css/bootstrap.min.css'

const routes = [
  { path: '/', redirect: '/heroes' },
  { path: '/heroes', component: HeroesList },
  { path: '/zb', component: ZbList },
  { path: '/jn', component: JnList }
]

const router = new VueRouter({ routes })

Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  router
}).$mount('#app')
